// @ts-ignore
/* eslint-disable */
import { request } from "../../utils/request";

/** 线索上报  - 录用列表  POST */
export async function getAdoptForAccountList(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.AdoptForAccountVo[]>>(
    '/cues/adopt/account/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**
 * 收录库
 * @param options
 * @returns
 */
export async function selectAdopt(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.AdoptForAccountVo>>('/cues/adopt/select', {
    method: 'POST',
    data: options || {},
  });
}

/**
 * 收录库
 * @param options
 * @returns
 */
export async function getAdoptPage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesAdoptData.AdoptVo[]>>('/cues/adopt/page', {
    method: 'POST',
    data: options || {},
  });
}

/**获取 主动报送 上报线索 组织 列表 POST */
export async function searchTreeOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.Organization[]>>(
    '/cues/adopt/search/organization/tree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**获取 主动报送 收录人 列表 POST */
export async function searchAdoptAccountList(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.SearchAdoptAccount[]>>(
    '/cues/adopt/search/account/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**
 * 收录库 更新 收录人
 * @param options
 * @returns
 */
export async function updateAdoptInstructAccount(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/adopt/instruct/account/update', {
    method: 'POST',
    data: options || {},
  });
}

/**
 * 收录库 更新 收录人
 * @param options
 * @returns
 */
export async function updateAdoptInstructDescribes(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/adopt/instruct/describes/update', {
    method: 'POST',
    data: options || {},
  });
}

/**
 * 收录库 获取 收录人名单
 * @param options
 * @returns
 */
export async function getAdoptInstructAccountPage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesAdoptData.InstructAccountVo[]>>(
    '/cues/adopt/instruct/account/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
